# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=pinyin-data
pkgver=0.13.0
pkgrel=1
pkgdesc="Pinyin Data for Hanzi"
arch=('any')
license=('MIT')
url="https://github.com/mozillazg/pinyin-data"
depends=()
source=("https://github.com/mozillazg/pinyin-data/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('522f76bc333235297d82ac147cbc2256e619b9a83f25676b7d5e61a7e938b1da19a344e8ea1e8b779b7e18ac13079d3501acb4564347dd3a5333bddb084b4e99')

package() {
  cd $pkgname-$pkgver
  install -Dm644 pinyin.txt -t "$pkgdir"/usr/share/$pkgname/
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
